package com.regent.central.bill.service;

import com.regent.central.bill.core.DeliveryAction;
import com.regent.central.infrastructure.service.DomainService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeliveryActionService extends DomainService<DeliveryAction> {
    /**
     * 查找发货单与销售单相关的actionId
     *
     * @param deliveryOrderId
     * @param saleOrderId
     * @return
     */
    List<String> selectGoodsActionIds(String deliveryOrderId, String saleOrderId);

    /**
     * 撤销发货单的指定发货货品的关联动作
     *
     * @param deliveryId       发货单
     * @param userCanceled     撤销人
     * @param deliveryGoodsIds 发货货品ID
     */
    void cancel(
            String deliveryId,
            String userCanceled,
            String... deliveryGoodsIds
    );

}
